package com.springmvc.controller;

import java.util.HashMap;
import java.util.Map;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
public class Test {

	@RequestMapping("/test")
	@ResponseBody
	public  Map test(){
		Map<String,Object> map = new HashMap<String, Object>();
		map.put("value", this.getClass().getResource("."));
		return map;
	}
}
